<?php

namespace pmvc\mvc\controller;

use pmvc\mvc\Controller;
use pmvc\mvc\Dispatcher;
use pmvc\mvc\Model;

class BaseController 
	implements Controller {
	
	public $defaultViewName;
	
	/**
	 * Returns the default view name as configured
	 * @return string the view name
	 */
	public function getDefaultViewName() {
		return $this->defaultViewName;
	}
	
	/**
	 * {@inheritDoc}
	 */
    public function handleRequest(Model $model, Dispatcher $dispatcher) {
        \pmvc\log\Log::fatal("BaseController::handleRequest() wasn't overriden");
    }
}

 ?>